package com.nuanshui.heatedloan.userinfo.vo;

import java.io.Serializable;


public class IncrUserIntegralVo  implements Serializable{
	private int score;//加的积分
	private String msg;//可以提示的信息
	private int oldLevel;
	private int  level;
	private boolean showAlertMsg =  false;
	private Integer acquireScore;
	private Integer nextScore;
	
	public Integer getAcquireScore() {
		return acquireScore;
	}
	public void setAcquireScore(Integer acquireScore) {
		this.acquireScore = acquireScore;
	}
	public Integer getNextScore() {
		return nextScore;
	}
	public void setNextScore(Integer nextScore) {
		this.nextScore = nextScore;
	}
	public boolean isShowAlertMsg() {
		return showAlertMsg;
	}
	public void setShowAlertMsg(boolean showAlertMsg) {
		this.showAlertMsg = showAlertMsg;
	}
	public int getOldLevel() {
		return oldLevel;
	}
	public void setOldLevel(int oldLevel) {
		this.oldLevel = oldLevel;
	}
	public int getLevel() {
		return level+1;
	}
	public void setLevel(int level) {
		this.level = level;
	}
	public int getScore() {
		return score;
	}
	public void setScore(int score) {
		this.score = score;
	}
	public String getMsg() {
		return msg;
	}
	public void setMsg(String msg) {
		this.msg = msg;
	}
	
	public String getAlertMsg() {
		if(this.msg == null) return null;
		return this.msg.replace("#score",score+"");
	}
	
	public boolean isUpgrade() {
		return (level-oldLevel)>0;
	}

}
